﻿using Furion.DatabaseAccessor;
using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace LimaLims.Core.Entity.System
{
    /// <summary>
    /// 系统通知
    /// </summary>
    [Comment("系统通知")]
    public class SysNotice : DEntityTenant
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Comment("标题")]
        [Required, MaxLength(50)]
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [Comment("内容")]
        [Required]
        public string Content { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Comment("状态")]
        public NoticeStatus Status { get; set; }
    }
}
